package com.lcifn.spring.aop.advice;

import java.lang.reflect.Method;

import org.springframework.aop.MethodBeforeAdvice;

/**
 * 浏览器前置增强
 * @author lichao
 *
 */
public class BrowserBeforeAdvice implements MethodBeforeAdvice{

	public void before(Method method, Object[] args, Object target) throws Throwable {
		encrypt();
	}
	
	//加密
	private void encrypt(){
		System.out.println("encrypt ...");
	}

}
